home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xml / UTFWriter.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  711 b   |  41 lines

  1. package com.extensibility.xml;
  2.  
  3. import java.io.IOException;
  4. import java.io.OutputStream;
  5. import java.io.Writer;
  6.  
  7. public class UTFWriter extends Writer {
  8.    // $FF: renamed from: os java.io.OutputStream
  9.    OutputStream field_0;
  10.  
  11.    public UTFWriter(OutputStream var1) {
  12.       this.field_0 = var1;
  13.    }
  14.  
  15.    public void write(char[] var1, int var2, int var3) throws IOException {
  16.       int var4 = var2 + var3;
  17.  
  18.       while(var2 < var4) {
  19.          this.field_0.write(var1[var2++]);
  20.       }
  21.  
  22.    }
  23.  
  24.    public void flush() throws IOException {
  25.       if (this.field_0 == null) {
  26.          throw new IOException();
  27.       } else {
  28.          this.field_0.flush();
  29.       }
  30.    }
  31.  
  32.    public void close() throws IOException {
  33.       if (this.field_0 == null) {
  34.          throw new IOException();
  35.       } else {
  36.          this.field_0.close();
  37.          this.field_0 = null;
  38.       }
  39.    }
  40. }
  41.